//
//  HX_TableVIewCell.m
//  UI10-SelfSize
//
//  Created by 韩旭 on 16/7/27.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "HX_TableVIewCell.h"

@implementation HX_TableVIewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _lable = [[UILabel alloc] initWithFrame:CGRectZero];
        _lable.backgroundColor = [UIColor orangeColor];
        [self.contentView addSubview:_lable];
    }
    return self;
}
- (void)layoutSubviews {
    [super layoutSubviews];
    NSLog(@"%lf", self.contentView.frame.size.height);
    NSLog(@"%lf", self.contentView.frame.size.width);
    _lable.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.frame.size.height);
    NSLog(@"%@", NSStringFromCGRect(self.frame));
}
@end